<?php
namespace app\controllers;

use app\models\sliderModel;

class indexController extends baseController
{

    public function __construct()
    {
        parent::__construct();
    }

    public function getSlider(){
        $obj = new sliderModel();
        $rs = $obj->getLists();
        dump($rs);
    }
    public function index()
    {   //视图层
        $data=['科比不来it','kobe'];
        $yang='这是 测试控制器，的标题';
        $test2 ='行不行就看你了';
        $this->display('index.php',['yang'=>$yang,'data'=>$data,'test2'=>$test2]);

    }
    public function test(){
        // echo 'hello world ppt';
        $data=['科比不来it','kobe'];
        $yang='这是 测试控制器，的标题';
        $test2='行不行就看你了';
        $this->render('test.php',['yang'=>$yang,'data'=>$data,'test2'=>$test2]);
    }
}